<template>
  <div class="app-layout">
    <header class="header">
      <nav class="container nav">
        <NuxtLink to="/" class="logo">
          创新产品
        </NuxtLink>
        <div class="nav-links">
          <NuxtLink to="/">首页</NuxtLink>
          <NuxtLink to="/products">产品</NuxtLink>
          <NuxtLink to="/about">关于我们</NuxtLink>
        </div>
      </nav>
    </header>
    
    <main>
      <slot />
    </main>
    
    <footer class="footer">
      <div class="container">
        <p>&copy; 2024 创新产品. All rights reserved.</p>
      </div>
    </footer>
  </div>
</template>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.router-link-active {
  color: #667eea;
}

main {
  min-height: calc(100vh - 140px);
}

.footer {
  background: #333;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}
</style>